package com.qf.controller;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Qualifier;
import org.springframework.stereotype.Controller;
import org.springframework.stereotype.Repository;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resources;

/**
 *  曾经的Servlet  Shift + Ctrl +  R
 * @author lixu
 */
@Controller
//@RestController //请求 响应 而准备的
//@Repository  //语义不好
public class HelloController {

    /**
     * 请求  添加拦截器
     *   前置
     *   后置
     *   渲染后
     */
    @RequestMapping(value = "/hello")
    public String hello(){
        //响应
        //   /：webapp
        //return "/WEB-INF/jsp/hello.jsp";
        return "hello";
    }

}
